home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
biz
/
demo
/
StylusDemo.lha
/
Stylus_Demo
/
REXX
/
ShowCharSet.pvrx
< prev
next >
Wrap
Text File
|
1995-04-17
|
2KB
|
75 lines
/* ShowCharSet.pvrx---inserts the Amiga Character Set using
the current typeface */
/*
call open STDOUT,"RAM:RxOut.txt",W
call open STDERR,"RAM:RxErr.txt",W
trace R
*/
options results
/* Lock out user input to ProVector. */
'Lock'
if rc ~= 0 then exit
'GetCurrAttrs' CurrAttrs
'GetCurrAttrs' CodeAttrs
CodeAttrs.Font = "Simple_Stroke"
CodeAttrs.EdgeType = 1
/* New project for display char set */
'NewProj'; CharSetProj = Result
'CurrProj CharSetProj'
NewPDims.Width = 11; NewPDims.Height = 8.5
'SetPageDims NewPDims'
/* New Layer for ASCII labels */
'CreateLayer "ASCII-Code"'
/* Some variables gathered together for tweaking... */
i = 32 /* Start loop character counter at 'space' */
X = .5 /* Begin X coord (CHANGE AT END OF LOOP ALSO) */
Y = .7 /* Begin Y coord */
cW = .175 /* Char width (.3 originally) */
cH = .35 /* Char height(.6 originally) */
aW = .1 /* ASCII char width */
aH = .2 /* ASCII char height */
Xinc = .515 /* X increment */
Yinc = .65 /* Y increment */
aYinc = .275 /* ASCII Y increment */
do i=i
do j = 1 to 10
do k = 1 to 20
/* Display a character */
'CurrentLayer "Default"'
'SetCurrAttrs' CurrAttrs
Str = d2c(i)
/* Escape ProVector escape char */
if i=92 then Str = Str||Str
'Text Str X Y cW cH 0'; TxtObj = result
/* Label it with its ASCII code */
'CurrentLayer "ASCII-Code"'
'SetCurrAttrs' CodeAttrs
Str = i
'Text' Str X (Y + aYinc) aW aH 0; TxtObj = result
i = i + 1
if i=256 then leave i
X = X + Xinc
end
X = .5 /* analogous to a carriage return */
Y = Y + Yinc /* analogous to a line feed */
end
end
/* Restore Current layer; Lock the label layer */
'CurrentLayer "Default"'
'EditLayer "ASCII-Code" 0'
'SetCurrAttrs CurrAttrs'
CLEANUP:
'UnLock'
EXIT